Skip to content

fix: separate add-on entries in Tools menu#5124

Open
qais8r wants to merge 4 commits into
ankitects:mainfrom
qais8r:add-tools-addon-separator
Open

fix: separate add-on entries in Tools menu#5124
qais8r wants to merge 4 commits into
ankitects:mainfrom
qais8r:add-tools-addon-separator

Conversation

@qais8r

@qais8r qais8r commented Jul 8, 2026

Copy link
Copy Markdown

Linked issue (required)

Closes #5125

Summary / motivation (required)

Add a separator at the end of Anki's built-in Tools menu actions, before any add-on-provided menu entries.

Add-ons commonly append actions directly to mw.form.menuTools. This keeps add-on entries visually separated from Anki's built-in Tools actions, especially on macOS where Preferences is shown elsewhere and add-on entries can appear immediately below "Check for Updates".

Because Qt hides trailing menu separators by default, users without add-on-provided Tools menu entries should not see an extra separator.

Steps to reproduce (required, use N/A if not applicable)

  1. Install one or more add-ons that append entries to the Tools menu.
  2. Open the Tools menu.
  3. Observe that add-on-provided entries appear directly after the built-in Tools menu entries.

How to test (required)

Checklist (minimum)

  • I ran ./ninja check or an equivalent relevant check locally.
  • I added or updated tests when the change is non-trivial or behavior changed.

Details

  • Parsed qt/aqt/forms/main.ui as XML.
  • Ran git diff --check.
  • No automated test was added because this is a one-line visual menu grouping change in a Qt Designer file.

Before / after behavior (optional)

Before: add-on-provided Tools menu entries can appear immediately after Anki's built-in actions.

After: add-on-provided Tools menu entries are visually separated from Anki's built-in actions.

Risk / compatibility / migration (optional)

Low risk. The change adds a Qt menu separator after the built-in Tools actions. Qt hides trailing menu separators by default, so users without add-on-provided Tools menu entries should not see an extra divider.

UI evidence (required for visual changes; otherwise N/A)

before after

Scope

  • This PR is focused on one change (no unrelated edits).

@qais8r
qais8r marked this pull request as ready for review July 8, 2026 14:52
@qais8r qais8r changed the title Add separator before Tools add-on menu entries fix: separate add-on entries in Tools menu Jul 8, 2026

qais8r commented Jul 16, 2026

Copy link
Copy Markdown
Author

Hi! I’ve resolved the merge conflicts and updated the branch with the latest changes from main. It’s ready for another look whenever you have a chance. Thank you!

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 Anki | 🛠️ Build #33621790 | 📁 Comparing cac0037 against latest (5d51ca0)

  🔍 Preview build  

4 files changed
± genindex.html
± autoapi/anki/collection/index.html
± autoapi/aqt/mediasrv/index.html
± autoapi/aqt/webview/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Separate add-on entries in the Tools menu

2 participants